home *** CD-ROM | disk | FTP | other *** search
/ Directorty Opus 5 - Magellan 2 / Opus 5 - Magellan 2.iso / Extras / opussdk / include / dopus / misc.h < prev    next >
C/C++ Source or Header  |  1996-08-30  |  1KB  |  47 lines

  1. #ifndef _DOPUS_MISC
  2. #define _DOPUS_MISC
  3.  
  4. /*****************************************************************************
  5.  
  6.  Miscellaneous functions
  7.  
  8.  *****************************************************************************/
  9.  
  10. // Hex ascii to long
  11. long Atoh(char *,long);
  12.  
  13. // Long to ascii (various methods)
  14. void Itoa(long,char *,char);
  15. void ItoaU(unsigned long,char *,char);
  16.  
  17. // Convert long value to byte string
  18. void BytesToString(unsigned long,char *,short,char);
  19.  
  20. // Division to a string
  21. void DivideToString(char *,unsigned long,unsigned long,short,char);
  22.  
  23. // 32-bit divide with remainder
  24. ULONG DivideU(unsigned long,unsigned long,unsigned long *,struct Library *);
  25.  
  26. // Convert BSTR to char *
  27. void BtoCStr(BSTR,char *,long);
  28.  
  29. // Random numbers
  30. void Seed(long);
  31. long Random(long);
  32.  
  33. // Build ascii string from rawkey values
  34. void BuildKeyString(unsigned short,unsigned short,unsigned short,unsigned short,char *);
  35.  
  36. // Valid key qualifiers
  37. USHORT QualValid(unsigned short);
  38.  
  39. // Convert rawkey values to a character
  40. BOOL ConvertRawKey(unsigned short,unsigned short,char *);
  41.  
  42. // String manipulation
  43. BOOL StrCombine(char *,char *,char *,long);
  44. BOOL StrConcat(char *,char *,long);
  45.  
  46. #endif
  47.